package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.ActivityRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActivityRuleRepository extends JpaRepository<ActivityRule,Integer>, JpaSpecificationExecutor<ActivityRule> {

    List<ActivityRule> findAllByActivityId(Integer activityId);

    Long countAllByGroupId(Integer groupId);

}
